<?
connection();
function connection(){
  
  $mysql_host = "127.0.0.1";
  $mysql_database = "line_temp";
  $mysql_user = "root";
  $mysql_password = "";
 
  $conn = mysql_connect($mysql_host,$mysql_user,$mysql_password);
  if($conn)
   {
     mysql_select_db($mysql_database,$conn);
     return $conn;
   }
   else
    
     echo 'database connection error';
	 
	 
   }
?>